﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateHtml.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Create.CreateHtml" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>生成文件</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/class.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/jquery/ui-1.8.18.custom.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#iptFirst").click(function () {
            OpenDialog('生成首页', 'CreateHtmlPrompt.aspx?type=first');
        });
        $("#iptShow").click(function () {
            OpenDialog('生成内容', 'CreateHtmlPrompt.aspx?type=id');
        });
        $("#iptIndex").click(function () {
            OpenDialog('生成聚合', 'CreateHtmlPrompt.aspx?type=indexs');
        });
        $("#iptList").click(function () {
            OpenDialog('生成列表', 'CreateHtmlPrompt.aspx?type=lists');
        });
        $("#iptAspx").click(function () {
            OpenDialog('生成动态', 'CreateHtmlPrompt.aspx?type=aspxs');
        });
        $("#iptSitemap").click(function () {
            OpenDialog('生成地图', 'CreateHtmlPrompt.aspx?type=sitemap')
        });
    });

    function OpenDialog(txt, url) {
        $("#dialogFrame").remove();
        var str = "<div id='dialogFrame'><iframe src='" + url + "' frameborder='0' marginwidth='0' marginheight='0' width='485' height='260'></iframe></div>";
        $("body").append(str);
        $("#dialogFrame").dialog({
            title: txt,
            autoOpen: true,
            modal: true,
            width: 500,
            height: 300,
            resizable: true,
            bgiframe: true
        });
    }

</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>设置&nbsp;&gt;&nbsp;生成文件</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>

<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">
          
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#f4fbff">
          <tr>
           <td>

            <table cellpadding=0 cellspacing=1 border=0 align="center" width="100%">
            <tr>
                <td valign="top">
                    <asp:Repeater ID="rptMenuList" runat="server" OnItemDataBound="rptMenuList_ItemDataBound">
                        <HeaderTemplate>
                         <table class="main_table" cellpadding="0" cellspacing="1" border="0" width="100%">
                           <tr align="center" class="td_title">
                                <td align="left" width="40%"><img src="../images/plugin.png" alt="" name="" width="16" height="16">&nbsp;栏目名称</td>
                                <td align="left" width="25%">栏目编号</td>
                                <td align="left" width="20%">文章数量</td>                                
                                <td align="center" width="15%">生成页面</td>
                           </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                         <tr class="td_on" onmouseover="this.className='td_off'" onmouseout="this.className='td_on'">
                            <td>
                                <asp:HiddenField ID="hidChannelId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"id") %>' />
                                <asp:Literal ID="litFirst" runat="server"></asp:Literal>
                                <asp:Label ID="labName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"title") %>'></asp:Label>
                            </td>
                            <td>
                                <%#DataBinder.Eval(Container.DataItem, "id")%>
                            </td>
                            <td>
                                <asp:Literal ID="litNewsCount" runat="server"></asp:Literal>
                            </td>                            
                            <td align="center">
                                <asp:Literal ID="litExec" runat="server"></asp:Literal>
                            </td>
                         </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td valign="top">
                  <div style=" display:block; height:30px; margin-top:5px;">
                    <%if (creStatic)
                      { %>
                    <input class="bt" id="iptFirst" type="button" value="生成首页" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptShow" type="button" value="生成内容" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptIndex" type="button" value="生成聚合" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptList" type="button" value="生成列表" />
                    &nbsp;&nbsp;
                    <%} %>
                    <input class="bt" id="iptAspx" type="button" value="生成动态" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptSitemap" type="button" value="生成地图" />
                  </div>
                  <span style="color:#999; "><!--#ffaa25//-->
                    (提示：生成文件路径 = 内容页生成路径/模板生成路径 + 内容页文件别名/聚合页模板名/列表页模板名/动态页模板名 + .html/.js/.aspx)
                  </span>
                </td>
            </tr>
          </table>
          
        </td>
       </tr>
      </table>

</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>
